import java.util.Scanner;

public class TuxingTest {
    public static void main(String[] args) {
        Tuxing tuxing=new Tuxing();
        System.out.println("请输入图形的名称 圆或者矩形");
        String Name;
        double r=tuxing.r;
        int l=tuxing.length,w=tuxing.width;
        Scanner sc=new Scanner(System.in);
        Name=sc.next();

        tuxing.IsName("Name");
        if(Name.equals("圆"))
        {
            System.out.println();
            System.out.println(Name+"的半径为"+tuxing.r);
            System.out.println(Name+"的面积为"+tuxing.Area(r));
        }
        else
        {
            System.out.println();
            System.out.println(Name+"的长宽为"+tuxing.length+","+tuxing.width);
            System.out.println(Name+"的面积为"+tuxing.Area(l,w));
        }
    }
}
